package com.gf.common.util;

import javax.servlet.http.HttpServletResponse;

public class ResponseContainer {
	private static final ThreadLocal<HttpServletResponse> THREAD_CONTEXT = new ThreadLocal<HttpServletResponse>();
	
	static HttpServletResponse getResponse() {
		return THREAD_CONTEXT.get();
	}

	static void removeResponse() {
		THREAD_CONTEXT.remove();
	}

	static void setResponse(HttpServletResponse response) {
		THREAD_CONTEXT.set(response);
	}
	
	
}
